From b184112ddbec5aedf7b25714200ccf571dbaba05 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Tue, 27 Mar 2007 17:08:42 +0000 Subject: [PATCH] in misermode enforce maximum offset of 10000, people should use search fields, probably. TODO: rewrite to use indexpager --- includes/SpecialLog.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/SpecialLog.php b/includes/SpecialLog.php index 9c98d8c8b0..7b021c9cbd 100644 --- a/includes/SpecialLog.php +++ b/includes/SpecialLog.php @@ -71,6 +71,10 @@ class LogReader { $this->limitTime( $request->getVal( 'until' ), '<=' ); list( $this->limit, $this->offset ) = $request->getLimitOffset(); + + // XXX This all needs to use Pager, ugly hack for now. + global $wgMiserMode; + if ($wgMiserMode && ($this->offset >10000)) $this->offset=10000; } /** -- 2.20.1